package pojo;

import java.util.Objects;

public class TbComment {
    private Integer commentId;
    private String commentContent;
    private Integer commentDeliver;
    private Integer commentMoney;
    private Integer commentService;
    private Integer userId;

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getCommentDeliver() {
        return commentDeliver;
    }

    public void setCommentDeliver(Integer commentDeliver) {
        this.commentDeliver = commentDeliver;
    }

    public Integer getCommentMoney() {
        return commentMoney;
    }

    public void setCommentMoney(Integer commentMoney) {
        this.commentMoney = commentMoney;
    }

    public Integer getCommentService() {
        return commentService;
    }

    public void setCommentService(Integer commentService) {
        this.commentService = commentService;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbComment tbComment = (TbComment) o;
        return Objects.equals(commentId, tbComment.commentId) &&
                Objects.equals(commentContent, tbComment.commentContent) &&
                Objects.equals(commentDeliver, tbComment.commentDeliver) &&
                Objects.equals(commentMoney, tbComment.commentMoney) &&
                Objects.equals(commentService, tbComment.commentService) &&
                Objects.equals(userId, tbComment.userId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(commentId, commentContent, commentDeliver, commentMoney, commentService, userId);
    }
}
